import request from "@/utils/request.js";

// 项目列表
export const ProjectListApi = (data) => {
  return request({
    url: "/api/project/list",
    method: "post",
    data,
  });
};
// 小区列表
export const CommunityApi = (data) => {
  return request({
    url: "/api/community/list",
    method: "post",
    data,
  });
};
// 检查人员
export const userListApi = (data) => {
  return request({
    url: "/api/user/list",
    method: "post",
    data,
  });
};
// 项目模板列表
export const projectDetailApi = (data) => {
  return request({
    url: "/api/project/listTemplate",
    method: "post",
    data,
  });
};

// 文章管理
// 文章列表  query传参
export const articleListApi = (data) => {
  return request({
    url: "/my/article/list",
    method: "get",
    params: data,
  });
};
// 新增文章
export const articlePublishApi = (data) => {
  return request({
    url: "/my/article/add",
    method: "post",
    data,
  });
};
